package com.uml.umlwork.dto.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @author copywork
 * @date 2021/01/04
 */
@ApiModel("开设课程DTO")
@Getter
@Setter
@NoArgsConstructor
public class AddCourseDTO {
    @ApiModelProperty("课程名称")
    @NotNull(message = "课程名称不能为空")
    String courseName;

    @ApiModelProperty("季度")
    @NotNull(message = "季度不能为空")
    String season;

    @ApiModelProperty("年")
    @NotNull(message = "年不能为空")
    String year;

}
